package com.coolingme.general;

/**
 * 模板模式测试
 *
 * @author wangyue
 * @date 2020-09-21 21:59
 */
public class Test {

    public static void main(String[] args) {
        AbstractClass objectA = new ConcreteClassA();
        objectA.templateMethod();

        System.out.println("------------------");

        AbstractClass objectB = new ConcreteClassB();
        objectB.templateMethod();

    }

}
